
from random import randint

lst = []
for k in range(10):
    lst.append(randint(1,100))
print("origin:",lst)

for i in range(len(lst)):
    k = i
    for j in range(i,len(lst)):
        if lst[j]<lst[k]:
            k = j
    if lst[k]<lst[i]:
        lst[i],lst[k] = lst[k],lst[i]
print("sort:",lst)